package com.salton123.processor.bean

import javax.annotation.processing.ProcessingEnvironment
import javax.lang.model.element.TypeElement

/**
 * User: wujinsheng1@yy.com
 * Date: 2021/1/16 12:13
 * ModifyTime: 12:13
 * Description:
 */
class ClzBean(
    val processingEnv: ProcessingEnvironment,
    val element: TypeElement,
    val elementSet: HashSet<TypeElement>
) {
    val implStr = "_Impl"
    val packageName = processingEnv.elementUtils.getPackageOf(element).qualifiedName.toString()
    val className = if (element.nestingKind.isNested) {
        "${element.enclosingElement.simpleName}\$${element.simpleName}"
    } else {
        "${element.simpleName}"
    }
    val implClzName = "$className$implStr"
    val packageClass = "$packageName.$className"
}